package dm.service;

public class URLObject
{
	public static int WAITING = 0;	
	public static int FINISHED = 1;
	
	private String url; //full url
	private String fileName; //file name with path		
	private long length;
	private int contentType;
	private int status;
	
	public URLObject()
	{
		url = null;
		status = URLObject.WAITING;
		contentType = 0;
		fileName = null; //file name with path
		length = 0;
	}
	
	
	//========= Url==========
	public String getUrl()
	{
		return url;
	}
	
	public void setUrl(String val)
	{
		url = val;
	}
	
	/**
	 * @param length the length to set
	 */
	public void setLength(long length)
	{
		this.length = length;
	}


	/**
	 * @return the length
	 */
	public long getLength()
	{
		return length;
	}
	
	/**
	 * @param fileName the fileName to set
	 */
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}


	/**
	 * @return the fileName
	 */
	public String getFileName() {
		return fileName;
	}	
		
	/**
	 * @param contentType the contentType to set
	 */
	public void setContentType(int type) {
		this.contentType = type;
	}


	/**
	 * @return the contentType
	 */
	public int getContentType()
	{
		return contentType;
	}


	/**
	 * @param iStatus the iStatus to set
	 */
	public void setStatus(int iStatus) {
		this.status = iStatus;
	}

	/**
	 * @return the iStatus
	 */
	public int getStatus()
	{
		return status;
	}
}